Platform Explorer / Nuxeo Platform LTS 2017 9.10

Contribution org.nuxeo.ecm.platform.oauth.directoryContrib--directories

This contribution is part of XML component org.nuxeo.ecm.platform.oauth.directoryContrib inside nuxeo-platform-oauth-9.10.jar /OSGI-INF/directory-contrib.xml

Extension Point

Extension point directories of component GenericDirectory.

Contributed Items

  • <directory extends="template-directory" name="oauthConsumers">
          <schema>oauthConsumer</schema>
          <idField>consumerKey</idField>
          <types>
            <type>system</type>
          </types>
          <permissions>
            <permission name="Read">
              <group>__Nobody__</group>
            </permission>
          </permissions>
        </directory>
  • <directory extends="template-directory" name="oauthServiceProviders">
          <schema>oauthServiceProvider</schema>
          <idField>id</idField>
          <autoincrementIdField>true</autoincrementIdField>
          <substringMatchType>subfinal</substringMatchType>
          <types>
            <type>system</type>
          </types>
          <permissions>
            <permission name="Read">
              <group>__Nobody__</group>
            </permission>
          </permissions>
        </directory>
  • <directory extends="template-directory" name="oauthTokens">
          <schema>oauthToken</schema>
          <idField>token</idField>
          <types>
            <type>system</type>
          </types>
          <permissions>
            <permission name="Read">
              <group>__Nobody__</group>
            </permission>
          </permissions>
        </directory>
  • <directory extends="template-directory" name="oauth2ServiceProviders">
          <schema>oauth2ServiceProvider</schema>
          <idField>id</idField>
          <autoincrementIdField>true</autoincrementIdField>
          <substringMatchType>subfinal</substringMatchType>
          <types>
            <type>system</type>
          </types>
          <permissions>
            <permission name="Read">
              <group>___Nobody___</group>
            </permission>
          </permissions>
        </directory>
  • <directory extends="template-directory" name="oauth2Tokens">
          <schema>oauth2Token</schema>
          <idField>id</idField>
          <autoincrementIdField>true</autoincrementIdField>
          <types>
            <type>system</type>
          </types>
          <permissions>
            <permission name="Read">
              <group>__Nobody__</group>
            </permission>
          </permissions>
        </directory>
  • <directory extends="template-directory" name="oauth2Clients">
          <schema>oauth2Client</schema>
          <idField>id</idField>
          <autoincrementIdField>true</autoincrementIdField>
          <dataFile>directories/oauth2clients.csv</dataFile>
          <types>
            <type>system</type>
          </types>
          <permissions>
            <permission name="Read">
              <group>__Nobody__</group>
            </permission>
          </permissions>
        </directory>

XML Source

<extension point="directories" target="org.nuxeo.ecm.directory.GenericDirectory">

    <directory extends="template-directory" name="oauthConsumers">
      <schema>oauthConsumer</schema>
      <idField>consumerKey</idField>
      <types>
        <type>system</type>
      </types>
      <permissions>
        <permission name="Read">
          <group>__Nobody__</group>
        </permission>
      </permissions>
    </directory>

    <directory extends="template-directory" name="oauthServiceProviders">
      <schema>oauthServiceProvider</schema>
      <idField>id</idField>
      <autoincrementIdField>true</autoincrementIdField>
      <substringMatchType>subfinal</substringMatchType>
      <types>
        <type>system</type>
      </types>
      <permissions>
        <permission name="Read">
          <group>__Nobody__</group>
        </permission>
      </permissions>
    </directory>

    <directory extends="template-directory" name="oauthTokens">
      <schema>oauthToken</schema>
      <idField>token</idField>
      <types>
        <type>system</type>
      </types>
      <permissions>
        <permission name="Read">
          <group>__Nobody__</group>
        </permission>
      </permissions>
    </directory>

    <directory extends="template-directory" name="oauth2ServiceProviders">
      <schema>oauth2ServiceProvider</schema>
      <idField>id</idField>
      <autoincrementIdField>true</autoincrementIdField>
      <substringMatchType>subfinal</substringMatchType>
      <types>
        <type>system</type>
      </types>
      <permissions>
        <permission name="Read">
          <group>___Nobody___</group>
        </permission>
      </permissions>
    </directory>

    <directory extends="template-directory" name="oauth2Tokens">
      <schema>oauth2Token</schema>
      <idField>id</idField>
      <autoincrementIdField>true</autoincrementIdField>
      <types>
        <type>system</type>
      </types>
      <permissions>
        <permission name="Read">
          <group>__Nobody__</group>
        </permission>
      </permissions>
    </directory>

    <directory extends="template-directory" name="oauth2Clients">
      <schema>oauth2Client</schema>
      <idField>id</idField>
      <autoincrementIdField>true</autoincrementIdField>
      <dataFile>directories/oauth2clients.csv</dataFile>
      <types>
        <type>system</type>
      </types>
      <permissions>
        <permission name="Read">
          <group>__Nobody__</group>
        </permission>
      </permissions>
    </directory>

  </extension>